package cn.wolfcode.cms.service;

import cn.wolfcode.cms.domain.Permission;
import cn.wolfcode.cms.query.QueryObject;
import cn.wolfcode.cms.util.PageResult;

import java.util.List;

public interface IPermissionService {
    void delete(Long id);

    List<Permission> list();

    PageResult query(QueryObject qo);

    //加载权限
    void reload();

    List<Permission> getPermissionByRoleId(Long id);

    //通过员工id查询权限表达式
    List<String> getPermissionResourcesByEmpId(Long id);
}
